package com.changli05._super.exer1;

public class Mankind {
    int sex;// 1->man,0->woman
    int salary;

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public int getSalary() {
        return salary;
    }

    public void setSalary(int salary) {
        this.salary = salary;
    }

    public void manOrWoman(){
        if(sex ==1){
            System.out.println("man");
        } else if (sex ==0) {
            System.out.println("woman");
        }
    }
    public void employee () {
        if (salary == 0) {
            System.out.println("NO job");
        } else if (salary!=0) {
            System.out.println("job");
        }
    }
}
